package com.erp.pur.dao;

import com.erp.pur.domain.GroupDetialDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 采购明细表
 * @author Eric
 * @email shiliang900713@163.com
 * @date 2019-07-15 18:09:09
 */
@Mapper
public interface GroupDetialDao {

	GroupDetialDO get(Long id);
	
	List<GroupDetialDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GroupDetialDO groupDetial);
	
	int update(GroupDetialDO groupDetial);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

    List<GroupDetialDO> getGrooupInfos(Long groupid);

	List<GroupDetialDO> getGroupDetilInfoProid(@Param("proid") Long proid, @Param("groupid") Long groupid);

    int updateOutQty(@Param("groupid")Long groupId, @Param("proid")Long skuid, @Param("outQty")Integer outQty);
}
